package com.usian.controller;

import com.usian.model.comment.CommentSaveDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.service.CommentLikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/comment/commentLike")
public class CommentLike {

    @Autowired
    private CommentLikeService commentLikeService;

    @PostMapping("/nice_nonice")
    public ResponseResult nice_nonice(@RequestBody CommentSaveDto dto){
        return commentLikeService.nice_nonice(dto);
    }
}
